---
title: "How to Configure Gemini with Continue"
slug: ../gemini
sidebarTitle: "Gemini"
---

<Tip>
  **Discover Google models [here](https://hub.continue.dev/hub?q=Gemini)**
</Tip>

<Info>
  Get an API key from [Google AI Studio](https://aistudio.google.com/)
</Info>

## Configuration

<Tabs>
  <Tab title="YAML">
  ```yaml title="config.yaml"
  name: My Config
  version: 0.0.1
  schema: v1

  models:
    - name: <MODEL_NAME>
      provider: gemini
      model: <MODEL_ID>
      apiKey: <YOUR_GEMINI_API_KEY>
  ```
  </Tab>
  <Tab title="JSON (Deprecated)">
  ```json title="config.json"
  {
    "models": [
      {
        "title": "<MODEL_NAME>", 
        "provider": "gemini",
        "model": "<MODEL_ID>",
        "apiKey": "<YOUR_GEMINI_API_KEY>"
      }
    ]
  }
  ```
  </Tab>
</Tabs>

<Info>
  **Check out a more advanced configuration [here](https://hub.continue.dev/google/gemini-2.5-pro?view=config)**
</Info>
